<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('goods_classify/index')}">类别列表</a></li>
			<li><a href="{:url('goods_classify/add')}">新增类别</a></li>
		</ul>
		<form action="{:url('')}" method="post" class="margin-top-20">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="40">ID</th>
						<!-- <th align="left">编号</th> -->
						<th align="left">类名</th>
						<th align="left">品牌</th>
						<th width="160">操作</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="data" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<!-- <td>{$vo.code}</td> -->
						<td>{$vo.classify_name}</td>
						<td>{$vo.name}</td>
						<td>
						 <if condition="$vo['status'] eq 1">
                            <a class="js-ajax-dialog-btn"
                               href="{:url('GoodsClassify/upStatus',['id'=>$vo['id'],'status'=>0])}">禁用</a>
                            <else/>
                            <a class="js-ajax-dialog-btn"
                               href="{:url('GoodsClassify/upStatus',['id'=>$vo['id'] ,'status'=>1])}">启用</a>
                         </if>
							<a href="{:url('GoodsClassify/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
							<a class="js-ajax-delete" href="{:url('GoodsClassify/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						 </td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>